﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="CredentialAdd.aspx.cs" Inherits="UI.ModMini.CredentialAdd" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
     <link rel="stylesheet" type="text/css" href="../Styles/BaseStyle.css" />
    <script type="text/javascript" src="../JS/jsFunction.js"></script>
    <script src="../JS/calendar.js" type="text/javascript"></script>
     <script type="text/javascript">
         //将回车键改为tab键//
         document.onkeydown = function (event) {
             try {
                 var evt = null;
                 if (arguments.length == 1) {
                     evt = arguments[0];
                 } else {
                     evt = (window.event ? window.event : null);
                 }
                 if (evt.charCode) {
                     if (evt.charCode == 13) {
                         var el = evt.srcElement || evt.target;
                         if (el) {
                             evt.charCode = 9;
                         }
                     }
                 } else {
                     if (evt.keyCode == 13) {
                         var el = evt.srcElement || evt.target;
                         if (el) {
                             evt.keyCode = 9;
                         }
                     }
                 }
             } catch (e) { }
         }
</script>
    <style type="text/css">
        .style1
        {
            width: 125px;
        }
    </style>
</head>
<body onload="window.document.forms[0].txtCredCode.focus();">
    <form id="form1" runat="server">
     <br />
    &nbsp;<br />
    &nbsp;<p style="text-align: center; font-size: large;">
        <strong>证照信息管理</strong></p>
    <br />
    <table style="width: 60%;" align="center">
        <tr>
            <td class="style1">
                证照编号
            </td>
            <td>
                <asp:TextBox ID="txtCredCode" runat="server" CssClass="InputCss" Width="150px" 
                    TabIndex="0" ></asp:TextBox>
               
            </td>
        </tr>
         <tr>
            <td class="style1">
                证照名称
            </td>
            <td>
                <asp:TextBox ID="txtCredName" runat="server" CssClass="InputCss" Width="150px" 
                    TabIndex="1" ></asp:TextBox>
               
            </td>
        </tr>
        <tr>
            <td class="style1">
                相关员工
            </td>
            <td>
                <asp:TextBox ID="txtEmpCode" AutoPostBack="True" runat="server" 
                    CssClass="InputCss" Width="100px" TabIndex="2" 
                    ontextchanged="txtEmpCode_TextChanged"></asp:TextBox>

                <asp:Label ID="lbEmpInfo" runat="server" ></asp:Label>
            </td>
        </tr>

        <tr>
            <td class="style1">
                类别
            </td>
            <td>
                <asp:DropDownList ID="ddlTypeID" runat="server" CssClass="InputCss">
                </asp:DropDownList>
            </td>
        </tr>
        <tr>
            <td class="style1">
               发证机关
            </td>
            <td>
                <asp:TextBox ID="txtCredDept" runat="server" CssClass="InputCss" Width="150px" TabIndex="4"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td class="style1">
               授予日期
            </td>
            <td>
                 <asp:TextBox ID="txtBtime" runat="server" CssClass="InputCss" Width="100px"  maxlength="10" onclick="setday(this,false)" onkeypress="return validateKey(this,false, getkeyCode(event));" style="ime-mode:Disabled;" 
                    TabIndex="5"> </asp:TextBox>            </td>
        </tr>
        <tr>
            <td class="style1">
              失效日期
            </td>
            <td>
                <asp:TextBox ID="txtEtime" runat="server" CssClass="InputCss" Width="100px"  maxlength="10" onclick="setday(this,false)" onkeypress="return validateKey(this,false, getkeyCode(event));" style="ime-mode:Disabled;" 
                    TabIndex="6"> </asp:TextBox>
            </td>
        </tr>
              <tr>
            <td class="style1">
               上次复检
            </td>
            <td>
                 <asp:TextBox ID="txtPreTime" runat="server" CssClass="InputCss" Width="100px"  maxlength="10" onclick="setday(this,false)" onkeypress="return validateKey(this,false, getkeyCode(event));" style="ime-mode:Disabled;" 
                    TabIndex="7"> </asp:TextBox>            </td>
        </tr>
        <tr>
            <td class="style1">
              下次复检
            </td>
            <td>
                <asp:TextBox ID="txtNextTime" runat="server" CssClass="InputCss" Width="100px"  maxlength="10" onclick="setday(this,false)" onkeypress="return validateKey(this,false, getkeyCode(event));" style="ime-mode:Disabled;" 
                    TabIndex="8"> </asp:TextBox>
            </td>
        </tr>
        <tr>
            <td class="style1">
                备注
            </td>
            <td>
                <asp:TextBox ID="txtMemo" runat="server" CssClass="InputCss" Width="260px" TabIndex="7"
                    Rows="5" TextMode="MultiLine"></asp:TextBox>
            </td>
        </tr>
    </table>
    <p style="text-align: center;">
        <asp:Button ID="btnAdd" runat="server" Text="增加" OnClick="btnAdd_Click" TabIndex="11" />
        &nbsp;<asp:Button ID="btnUpdate" runat="server" Text="更新" OnClick="btnUpdate_Click"
            TabIndex="12" Style="height: 21px" />
        &nbsp;<asp:Button ID="btnReset" runat="server" Text="清空" OnClick="btnReset_Click"
            TabIndex="15" style="height: 21px" />
        &nbsp;<asp:Button ID="btnDelete" runat="server" Text="删除" OnClick="btnDelete_Click"
            OnClientClick="return confirm('确定要删除吗?\n');" TabIndex="16" />
        &nbsp;<asp:Button ID="btnClose" runat="server" OnClick="btnClose_Click" Text="关闭"
            TabIndex="17" CausesValidation="False" Style="height: 21px" />
    </p>
    </form>
</body>
</html>
